package com.daodway.designpattern.commandpattern.macro;

public class PrintNumber {
	int n;

	public PrintNumber(int n) {
		super();
		this.n = n;
	}
	public void printEvenNumber(){
		for(int m=1;m<=n;m++){
			if(m%2==0){
				System.out.println("\t"+m);
			}
		}
	}
}
